<div class="productShops index">
    <h2><?php echo __('Stock de Productos'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('Punto de Venta'); ?></th>
            <th><?php echo $this->Paginator->sort('Producto'); ?></th>
            <th><?php echo $this->Paginator->sort('Stock Minimo'); ?></th>
            <th><?php echo $this->Paginator->sort('Stock Actual'); ?></th>
            <th class="actions"><?php echo __('Opciones'); ?></th>
        </tr>
        <?php foreach ($productShops as $productShop): ?>
            <tr>
                <td>
                    <?php echo $this->Html->link($productShop['Shop']['name'], array('controller' => 'shops', 'action' => 'view', $productShop['Shop']['id'])); ?>
                </td>
                <td>
                    <?php echo $this->Html->link($productShop['Product']['name'], array('controller' => 'products', 'action' => 'view', $productShop['Product']['id'])); ?>
                </td>
                <td><?php echo h($productShop['ProductShop']['minimun_stock']); ?>&nbsp;</td>
                <td><?php echo h($productShop['ProductShop']['current_stock']); ?>&nbsp;</td>
                <td class="actions">
                    <?php // echo $thcis->Html->link(__('View'), array('action' => 'view', $productShop['ProductShop']['id'])); ?>
                    <?php // echo $this->Html->link(__('Editar'), array('action' => 'edit', $productShop['ProductShop']['id'])); ?>
                    <?php echo $this->Form->postLink(__('borrar'), array('action' => 'delete', $productShop['ProductShop']['id']), null, __('¿Realmente desea eliminar?', $productShop['ProductShop']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $this->element('footer/paginator') ?>

</div>
<?php echo $this->element('menues/products') ?>
